package com.tcu.menu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tcu.menu.entity.Menu;
import com.tcu.menu.entity.MenuItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    @Select("select * from sbn_menu_item where parent_id = #{id}")
    List<MenuItem> getItemListByMenuIt(String id);
}
